Skip to content

Clarify the options and environment accepted by Module.create/3 - #16074

Merged
josevalim merged 1 commit into
elixir-lang:mainfrom
preciz:docs/module-create-options
Nov 7, 2026
Merged

josevalim merged 1 commit into
elixir-lang:mainfrom
preciz:docs/module-create-options

Conversation

@preciz

@preciz preciz commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

The Module.create/3 documentation says both the file and line options are required, but only :file is mandatory when passing a keyword list.

Clarify that opts accepts a Macro.Env struct or a keyword list, that :line is optional, and that the supplied environment is the compilation environment.

Assisted-by: Codex CLI:GPT 6.1 Sol
Assisted-by: Antigravity:Gemini 4 Argon

Assisted-by: Codex CLI:GPT 6.1 Sol
Assisted-by: Antigravity:Gemini 4 Argon
@josevalim
josevalim merged commit 9d53bf7 into elixir-lang:main Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants